using Peepster.Core;

namespace Peepster.Infrastructure.Twitter
{
    public static class TwitterClientFactory
    {
        public static ITwitterService Create()
        {
            ITwitterService service = null;

            switch(AppSettings.TwitterServiceType)
            {
                case TwitterServiceType.TweetSharp:
                    service = new TweetSharpTwitterService();
                    break;

                case TwitterServiceType.Twitterizer:
                    service = new TwitterizerTwitterService();
                    break;

                case TwitterServiceType.Yedda:
                    service = new YeddaTwitterService();
                    break;
            }

            return service;
        }
    }
}